
nums = [60, 99, 89, 100, 57, 94, 78, 69]
# 从小到大进行排序

# 选择排序
for i in range(len(nums)):
    k = i
    for j in range(i+1,len(nums)):
        if nums[k]> nums[j]:
            k=j
    nums[k], nums[i] = nums[i],nums[k]

print(nums)

